Make gtk_widget_get_state() only handle GtkStateType values available in 2.x
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 25 Jan 2011 12:30:24 +0000 (13:30 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 25 Jan 2011 12:36:13 +0000 (13:36 +0100)
commite521158973debef807c45f485d580ed3f395cad6
treec527e8326b45ac895f0f4b6e7c97bff5fb4937fd
parent42b6e47fcab79c6d83fb162f236b247cd85eb48d
Make gtk_widget_get_state() only handle GtkStateType values available in 2.x

GtkStateType was generally used as an index in GtkStyle color arrays, so
bigger values will cause invalid memory accesses in widgets that are still
doing that. this was seen in focused GtkIconViews for example
gtk/gtkwidget.c